package com.t21;

/**
 * Created by xuyiwei on 2018/9/16.
 */
public  abstract class IntGenerator {
    private volatile boolean canceled = false;
    public abstract int next();
    public void cancel(){canceled = true;}
    public boolean isCanceled(){return canceled;}

}
